import requests
def face_analyze(API_key,API_secret,face_tokens,attributes=None,landmark=1):
    """该函数为调用face++ face_detect接口"""
    baseurl = "https://api-cn.faceplusplus.com/facepp/v3/face/analyze"
    payload = {
          "api_key":API_key,
          "api_secret":API_secret,
          "face_tokens":face_tokens,
          "return_attributes":attributes,
          "return_landmark":landmark
           }
    r = requests.post(baseurl,params = payload)
    return r.json()